<?php

$WEBAUTH_USER = getenv('WEBAUTH_USER');

echo "<html><head><title>New Project</title><link rel='stylesheet' type='text/css' href='style.css'>
</head><body>
<h3>New Project</h3>
<form action='createproj-do.php' method='post'>
<table cellpadding='2'>
<tr><th>Submitter: </th><td>$WEBAUTH_USER<input type='hidden' name='submitter' value='$WEBAUTH_USER'><input type='hidden' name='state' value='2'></td></tr>
<tr><th>Owner: </th><td><input type='text' name='username' size='8' maxlength='8' value='$WEBAUTH_USER'> defaults to username of submitter</td></tr>
<tr><th>Title: </th><td><input type='text' name='title' size='50' maxlength='50'></td></tr>
<tr><th>Original Due Date: </th><td><input type='text' name='origduedate' size='10' maxlength='10'> (DD/MM/YYYY)</td></tr>
<tr><th>Current Due Date: </th><td><input type='text' name='currduedate' size='10' maxlength='10'> (DD/MM/YYYY)</td></tr>
</table><input type='submit' value='Create Project'></form>
<a href='myprojects.php'>Return to My Projects</a><br></body></html>";

?>
